import { createRouter, createWebHistory } from 'vue-router'
const home = () => import('../views/home/home')
const category =()=>import('../views/cateory/cateory.vue')
const cart =()=>import('../views/cart/cart.vue')
const profile =()=>import('../views/profile/profile.vue')
const detail=()=>import('../views/detail/detail.vue')
const buygoodscart =()=> import('../views/profile/buygoodscart.vue')

const routes = [
  {
    path: '',
    redirect: '/home'
  },
  {
    path: '/home',
    component: home
  },
  {
    path: '/category',
    component: category
  },
  {
    path: '/cart',
    component: cart
  }, {
    path: '/profile',
    component: profile
  },{
    path: '/detail',
    component: detail
  },
  {
    path: '/buygoodscart',
    component: buygoodscart
  },
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
